<!doctype html>
<html>
<head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="initial-scale=1.0, user-scalable=no, width=device-width">
    <title>带功能控件的地图</title>
    <link rel="stylesheet" href="https://a.amap.com/jsapi_demos/static/demo-center/css/demo-center.css" />
    <script src="https://cache.amap.com/lbs/static/es5.min.js"></script>
    <script src="https://webapi.amap.com/maps?v=1.4.10&key=dbbed59c78f2570991019a57dd149529&&plugin=AMap.Scale,AMap.OverView,AMap.ToolBar"></script>
    
    <style>
        html, body {
            height: 100%;
        }
        #container {
            height: 100%;
        }
        .input-card {
            width: 150px;
            top: 10px;
            bottom: auto;
        }
    </style>
</head>
<body>
  <!-- <button>按钮</button> -->
<div id="container"></div>

<script>
    var scale = new AMap.Scale({
  
    }),
    toolBar = new AMap.ToolBar({
    }),
    overView = new AMap.OverView({
    }),
    map = new AMap.Map("container", {
        resizeEnable: true
    });
    map.addControl(scale);
    map.addControl(toolBar);
    map.addControl(overView);

    var btn = document.querySelector('button')
    /* btn.onclick = function () {
      scale.hide()
      toolBar.hide()
      overView.hide()
    } */
    
</script>
</body>
</html>